package com.ccp.dev.qbdms.model;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by zzy on 2020/8/7.
 *
 * @Author zzy
 * @Date 2020/8/7
 * @describe 通用上报model,封装无需上报,退回待修改,上报数据.
 */
public class CommonReportModel {
    public CommonReportModel() {
    }

    public CommonReportModel(String dataId, String status, String modelName, String tableName, String returnMsg, String orgCode) {
        this.dataId = dataId;
        this.status = status;
        this.modelName = modelName;
        this.tableName = tableName;
        this.returnMsg = returnMsg;
        this.orgCode = orgCode;
    }

    /** 数据id */
    private String dataId;
    /** 要更新的状态码 */
    private String status;
    /** 对应的类名 */
    private String modelName;
    /** 对应的表名,用于更新状态 */
    private String tableName;
    /** 退回原因 */
    private String returnMsg;

    /** 要退回的单位code */
    private String orgCode;

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public String getDataId() {
        return dataId;
    }

    public void setDataId(String dataId) {
        this.dataId = dataId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getModelName() {
        return modelName;
    }

    public void setModelName(String className) {
        this.modelName = className;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public Map<String, Object> toMap(){
        Map<String, Object> map = new HashMap<>(8);
        map.put("dataId", this.dataId);
        map.put("status", this.status);
        map.put("modelName", this.modelName);
        map.put("tableName", this.tableName);
        map.put("returnMsg", this.returnMsg);
        return map;
    }

}
